<?php
$login = array(
	'name'	=> 'login',
	'id'	=> 'login',
	'value' => set_value('login'),
	'maxlength'	=> 80,
	'size'	=> 30,
);
if ($this->config->item('use_username', 'tank_auth')) {
	$login_label = 'Email or login';
} else {
	$login_label = 'Email';
}
?>
<?php
$this->backyard_view->header();
?>
<tr>
            <td align="center" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="763">
                    <tbody><tr>
                      <td background="/images/content2_top.jpg" align="center" width="763" valign="bottom" height="43">&nbsp;</td>
                    </tr>
                    <tr>
                      <td background="/images/content2_mid.jpg" align="center" width="763" valign="top" height="22"><table cellspacing="0" cellpadding="0" border="0" width="472">
                          <tbody><tr>
                          <td height="25">&nbsp;</td>
                        </tr>
                        <tr>
                          <td background="/images/login_bg.jpg" align="center" width="472" valign="top" height="282">
<?php echo form_open($this->uri->uri_string(),array('id'=>'forgot_password_form')); ?>
<table cellspacing="0" cellpadding="0" border="0" width="334">
                            <tbody><tr>
                              <td height="45">&nbsp;</td>
                            </tr>
							<tr align="left">
                              <td height="20" class="h2">Forgot Password？ </td>
                            </tr>
                            <tr>
                              <td height="15"><img width="329" height="7" src="/images/line2.jpg"></td>
                            </tr>
                            <tr>
                              <td height="10"></td>
                            </tr>
                            <tr>
                              <td height="20"><table cellspacing="0" cellpadding="0" border="0" width="334">
                                <tbody><tr>
                                  <td align="left" width="104" class="login_font"><?php echo form_label($login_label, $login['id']); ?></td>
                                  <td><?php echo form_input($login); ?></td>
                                </tr>
								<tr><td colspan=2 style="color: red;"><?php echo form_error($login['name']); ?><?php echo isset($errors[$login['name']])?$errors[$login['name']]:''; ?></td>
								</tr>
                              </tbody></table></td>
                            </tr>
                            <tr>
                              <td height="20">&nbsp;</td>
                            </tr>
							<tr align="left">
                              <td height="20"><table width="334" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td>&nbsp;</td>
                                  <td width="157"><table width="157" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="157" height="32" align="center" valign="middle" background="/images/apply_btn.jpg"><a href="javascript:document.forms['forgot_password_form'].submit();" class="login_link">Get a new password</a></td>
                                    </tr>
                                  </table></td>
                                </tr>
                              </table></td>
                            </tr>
                          </tbody></table>
                          <?php echo form_close(); ?></td>
                        </tr>
                      
                      </tbody></table>
                       </td>
                    </tr>
                    <tr>
                      <td><img width="763" height="91" src="/images/content2_down.jpg"></td>
                    </tr>
                  </tbody></table>
            </td>
          </tr>
<?php
$this->backyard_view->footer();

?>